#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	double a = 1.0, sum = 0;
	int k=0,m=0;
	scanf("%d", &k);
	for (; sum <= k; a++) {
		sum = sum+1 / a;
		m++;
	}
	printf("%d", m);
	return 0;
}//